{*include file="template/admin_head.htm"*}
<table width="100%" border="0" cellspacing="0" cellpadding="0" id="containtable" class="{*$cf_controller*}">
    <tr>
	<td valign="top" bgcolor="#FFFFFF">
	    <div class="wrapper  pr_8">
		{*if $cf_action=='add' || $cf_action=='edit'*}
		<script type="text/javascript">		    
		    $(function() {				
				
				call_editor('#news_text','nomal');
				/*call_editor('#news_text_en,#news_text_ch','full');*/			
		    });		
		  
		</script>
		<script type="text/javascript">
		    $(function(){
				$("#act_form").submit(function(){
					if($("#news_title").val()==''){
						my_alert('请输入标题','Error',"$('#news_title').focus()");
						return false;
					}
					if($("#news_create_time").val()==''){
						my_alert('请选择发布日期','Error',"$('#news_create_time').focus()");
						return false;
					}
					if($("#news_text").val()==''){
						my_alert('请输入详细内容','Error',"$('#news_text').focus()");
						return false;
					}			   
				});
		    })
		</script>
		<div class="content_table_center_style">
		<div class="p8">
		    <form action="{*$form_action*}" method="post" enctype="multipart/form-data" name="act_form" id="act_form">
			<input id="sessionid" type="hidden" value="{*$cf_sessionid*}" />
			<input name="id" id="id" type="hidden" value="{*$row['news_id']*}" />
			<input name="act" id="act" type="hidden" value="{*$cf_action*}" />
			<input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />		
		  <div class="content_panel_title">
			    <div class="contentpanelleft"></div>
			    <div class="contentpanelcenter">
				<span class="contentpanelcenter_font">新增/修改单页文章</span>
				<span><a class="edit at" href="{*$cf_self_page*}?dpt={*$cf_dpt*}">单页文章管理</a></span>
			    </div>
			    <div class="contentpanelrihgt"></div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tbl tbl_nbr">
			    <tbody>
				<tr>
				    <td width="15%" align="right" ><span class="red">*</span>标题:</td>
				    <td width="85%" align="left"><input name="news_title" type="text" id="news_title" value="{*$row['news_title']*}" size="60" maxlength="150" /></td>
				</tr>
                <tr>
				    <td width="15%" align="right" ><span class="red">*</span>类型:</td>
				    <td width="85%" align="left"><input name="news_type" type="text" id="news_type" value="{*$row['news_type']*}" size="60" maxlength="150" /></td>
				</tr>				             
				<tr>
				    <td align="right"><span class="red">*</span>详细内容:</td>
				    <td align="left"><textarea name="news_text" id="news_text" cols="140" rows="40">{*$row['news_text']*}</textarea></td>
				</tr>				
				<tr>
				    <td colspan="2" align="center"><input type="submit" name="Submit" class="myinput" value="提 交" />
					&nbsp;&nbsp;
					<input type="button" name="back" class="myinput" value="返 回" onclick="window.history.back()" /></td>
				</tr>
			    </tbody>
			</table>
		    </form>
		</div>
		</div>
		{*else*}	

		<div class="pannel">
		    <div class="pl"></div>
		    <div class="pr"></div>
		    <div class="pc1">
			<form name="search_form" id="search_form" method="post" action="{*$cf_self_page*}">
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
			    <div class="pt">单页文章标题:
				  <input type="text" class="tet" name="skey" id="skey" size="20" value="{*$skey*}"/>
				  &nbsp;
				<!--分类:{*html_options name=stype id=stype options=$cf_info_var_common.news_sort selected=$stype*}-->
				<input type="image" src="public/images/admin/icon_search_btn.gif" /></div>		
			</form>
		    </div>

		</div>



		<div class="content_panel_title">
                    <div class="contentpanelleft"></div>
                    <div class="contentpanelcenter">
                        <span class="contentpanelcenter_font">单页文章管理</span>

                        <span><a class="edit at" href="{*$cf_self_path*}-act_add.htm?dpt={*$cf_dpt*}">添加单页文章</a></span></div>
                    <div class="contentpanelrihgt"></div>
                </div>             
                <div class="content_table_center_style">
                    <div class="p8">
			<form name="list_form" id="list_form" method="post" action="{*$cf_self_page*}">
			    <input name="act" type="hidden" value="all" />
			    <input name="dpt" id="dpt" type="hidden" value="{*$cf_dpt*}" />
			    <table width="100%" class="tbl tbl_nbr">
				<thead>
				    <tr class="thd">
					<td align="center" class="thr">ID</td>
					<td align="center" class="thr">标题</td>
					<td align="center" class="thr">发布时间</td>
					<td colspan="2" align="center" class="thr">操作</td>
				    </tr>
				</thead>
				<tbody>
				    {*foreach name=news_part item=item from=$data_ary*}

				    {*assign var=sort value=$item['news_sort']*}				    
				    {*assign var=show value=$item['news_show']*}
				    <tr onmouseover="this.style.backgroundColor='#ffC'" onmouseout="this.style.backgroundColor='#ffF'">
					<td align="center">{*$item['news_id']*}</td>
					<td align="left"><!--<a href="default/newsinfo-id_{*$item['news_id']*}.htm" target="_blank" title="{*$item['news_title']*}">-->{*$item['news_title']|truncate:60*}<!--</a>--></td>
					<td align="center">{*$item['news_create_time']*}</td>
					<td align="center"><a href="{*$cf_self_path*}-act_edit_id_{*$item['news_id']*}.htm?dpt={*$cf_dpt*}" class="edit">修改</a></td>
					<td align="center"><a href="{*$cf_self_path*}-act_del_id_{*$item['news_id']*}.htm?dpt={*$cf_dpt*}" class="del" onclick="return confirm('你确定要删除吗?')">删除</a></td>
				    </tr>
				    {*/foreach*}

				    <tr class="tft">
					<td colspan="5" style="padding:0;">
					    <table width="100%" border="0">
						<tr>
						    <td width="6%" align="center" style="border:0;padding:0;">&nbsp;</td>
						    <td width="22%" align="center" style="border:0;padding:0;">&nbsp;</td>
						    <td width="72%" style="border:0;padding:0;" ><div class="turnPage"><p>{*$page*}</p></div></td>
						</tr>
					    </table>
					</td>
				    </tr>
				</table>
			</form>
		    </div>
                </div>
		<div class="content_main_bottom">
                    <div class="content_main_bottom_left"></div>
                    <div class="content_main_bottom_right"></div>
                </div>
            </div>
            <br />
            {*/if*}

	    </div>
	</td>
	</tr>
</table>
{*include file="template/admin_foot.htm"*}